<!doctype>
<html>
  <head>
      <link  rel="stylesheet"  type="text/css"  href="bootstrap/css/bootstrap.min.css"/>
         <style>
              div{
                    width:100px;
                    height:100px;
                    border:1px solid   black;
                    float: left;
                    margin:8px;
               }
                div[lang$=en ]{
                   background:red;
                }
                span {
                     color:  green;
               }           
                [lang=anxxxy]~ div {     
                    background:blueviolet;
            }
        </style>
    </head>
        <body>
             <div> 
                <span>漂亮姐姐
                     <span>帅气哥哥</span>
                </span>
             </div>
             <div></div>
             <div></div>
             <div></div>
             <div lang="en"></div>     
             <div lang="anxxxy"></div> 
             <div></div>
             <div></div>
      </body>
 </html>      

